<extend name="Public/frame"/>
<block name="page_body">

    <include file="Public/header"/>

    <div class="layout-container">
        <include file="menu" />
        <div class="box-body">

            <div class="page-container">
                <div class="head">
                    <h1>分类列表</h1>
                </div>
                <div class="body">

                    <table class="table table-hover">
                        <thead>
                            <tr>
                                <th>名称</th>
                                <th>操作</th>
                            </tr>
                        </thead>
                        <tbody>
                            <foreach name="data_list" item="i">
                                <tr>
                                    <td>{$i.title|htmlspecialchars}</td>
                                    <td>
                                        <a href="{:U('DocumentCat/post?action=edit&id='.$i['id'])}">修改</a>
                                        <a class="command-ajax-delete" href="#" data-href="{:U('DocumentCat/post_handle?action=delete&id='.$i['id'])}">删除</a>
                                    </td>
                                </tr>
                            </foreach>
                        </tbody>
                    </table>

                </div>
            </div>

        </div>
    </div>


    <include file="Public/footer"/>

</block>